/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.queuebase;

import com.jeeplus.common.json.AjaxJson;

import com.jeeplus.common.utils.StringUtils;
import com.jeeplus.core.web.BaseController;

import com.jeeplus.modules.work.utils.HttpRequestUtil;
import com.jeeplus.modules.work.utils.IDCARDUtils;
import com.jeeplus.modules.work.utils.ProgramRunningCheck;
import net.sf.json.JSONObject;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;


/**
 * 排队记录Controller
 * @author azj
 * @version 2024-09-29
 */
@RestController
@RequestMapping(value = "bd")
public class QueueBaseController extends BaseController {

	/**
	 * getCardValue
	 *获取用户刷卡信息
	 * @author azj
	 * @date 2020-05-18/下午1:43:15
	 */
	@GetMapping("getCardValue")
	public AjaxJson getCardValue(){
		return AjaxJson.success().put("data", IDCARDUtils.getCardValue());
	}

	/**
	 * startReaderSV
	 * 手动启动本地脚本
	 * @author azj
	 * @date 2020-05-18/下午1:43:15
	 */
	@GetMapping("startReaderSV")
	public AjaxJson startReaderSV(){
		return AjaxJson.success().put("data", ProgramRunningCheck.startReaderSV());
	}
}